package com.firebroo.Factory;

public class Factory {
	public Animal product(String type){
		if(type == "Bird"){
			return new Bird();
		}else if(type == "Dog"){
			return new Dog();
		}else if(type == "Pig"){
			return new Pig();
		}else {
			return null;
		}
	}

}
